import request from '@/utils/request'

// 查询时间维度列表
export function listBiDateDimension(query) {
  return request({
    url: '/apiDefine/BiDateDimension/list',
    method: 'get',
    params: query
  })
}

// 查询时间维度详细
export function getBiDateDimension(id) {
  return request({
    url: '/apiDefine/BiDateDimension/' + id,
    method: 'get'
  })
}

// 新增时间维度
export function addBiDateDimension(data) {
  return request({
    url: '/apiDefine/BiDateDimension',
    method: 'post',
    data: data
  })
}

// 修改时间维度
export function updateBiDateDimension(data) {
  return request({
    url: '/apiDefine/BiDateDimension',
    method: 'put',
    data: data
  })
}

// 删除时间维度
export function delBiDateDimension(id) {
  return request({
    url: '/apiDefine/BiDateDimension/' + id,
    method: 'delete'
  })
}
